package chixing.day07.work;

public class PartTimeEmployee extends MyEmployee{
    private double hourlyRate;
    private double hoursWorked;
    public PartTimeEmployee()
    {
        super();
    }
    public PartTimeEmployee(String empName, int empNo, double empBaseSalary,double hourlyRate,double hoursWorked)
    {
        super(empName,empNo,empBaseSalary);
        this.hourlyRate=hourlyRate;
        this.hoursWorked=hoursWorked;
    }
    public double calculateSalary()
    {
        return hourlyRate*hoursWorked;
    }
}
